<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let obj = {
        a: 1,
        b: 2,
        d: 4
    }
    // console.log(obj);
    
    // let a = obj.a;
    // let b = obj.b;
    // console.log(a, b);
    
    // let {a, b} = obj;
    // console.log(a, b);

    let {a, b, c} = obj;
    console.log(a, b, c); // 变量名和属性名必须一一对应
</script>
</body>
</html>
